import { Router } from 'express';
import { LogController } from '../controllers/log.controller';
import { auth } from '../middleware/auth';

const router = Router();

// 获取日志文件列表
router.get('/', auth, LogController.getLogFiles);

// 读取日志文件内容
router.get('/:filePath', auth, LogController.readLogFile);

// 分析访问日志
router.get('/:filePath/analyze', auth, LogController.analyzeLogs);

export default router; 